import { settingStore } from '@/store/settings'
import defaultSettings from '@/settings'

/**
 * 动态修改标题
 */
export function useDynamicTitle() {
  const setStore = settingStore()
  if (setStore.dynamicTitle) {
    document.title = setStore.title + ' - ' + defaultSettings.title;
  } else {
    document.title = defaultSettings.title;
  }
}